<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
                "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
  <title>Description of remove_mat</title>
  <meta name="keywords" content="remove_mat">
  <meta name="description" content="Sets the mat field of the OBJNAME of OBJTYPE to empty.">
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <meta name="generator" content="m2html &copy; 2003 Guillaume Flandin">
  <meta name="robots" content="index, follow">
  <link type="text/css" rel="stylesheet" href="../m2html.css">
</head>
<body>
<a name="_top"></a>
<!-- menu.html . -->
<h1>remove_mat
</h1>

<h2><a name="_name"></a>PURPOSE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="box"><strong>Sets the mat field of the OBJNAME of OBJTYPE to empty.</strong></div>

<h2><a name="_synopsis"></a>SYNOPSIS <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="box"><strong>function [subj] = remove_mat(subj,objtype,objname) </strong></div>

<h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="fragment"><pre class="comment"> Sets the mat field of the OBJNAME of OBJTYPE to empty.

 [SUBJ] = REMOVE_MAT(SUBJ,OBJTYPE,OBJNAME)

 N.B. This doesn't change the subj.x strings. If subj.x refers to
 the object that was just removed, remember to update subj.x
 accordingly.</pre></div>

<!-- crossreference -->
<h2><a name="_cross"></a>CROSS-REFERENCE INFORMATION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
This function calls:
<ul style="list-style-image:url(../matlabicon.gif)">
<li><a href="set_mat.html" class="code" title="function [subj] = set_mat(subj,objtype,objname,newmat,varargin)">set_mat</a>	Updates the MAT contents of an object</li></ul>
This function is called by:
<ul style="list-style-image:url(../matlabicon.gif)">
<li><a href="move_pattern_to_hd.html" class="code" title="function [subj pathfilename] = move_pattern_to_hd(subj,patname,varargin)">move_pattern_to_hd</a>	Moves the pattern MAT to the hard disk</li></ul>
<!-- crossreference -->


<h2><a name="_source"></a>SOURCE CODE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="fragment"><pre>0001 <a name="_sub0" href="#_subfunctions" class="code">function [subj] = remove_mat(subj,objtype,objname)</a>
0002 
0003 <span class="comment">% Sets the mat field of the OBJNAME of OBJTYPE to empty.</span>
0004 <span class="comment">%</span>
0005 <span class="comment">% [SUBJ] = REMOVE_MAT(SUBJ,OBJTYPE,OBJNAME)</span>
0006 <span class="comment">%</span>
0007 <span class="comment">% N.B. This doesn't change the subj.x strings. If subj.x refers to</span>
0008 <span class="comment">% the object that was just removed, remember to update subj.x</span>
0009 <span class="comment">% accordingly.</span>
0010 
0011 
0012 <span class="keyword">if</span> ~nargout
0013   error(<span class="string">'Don''t forget to catch the subj structure that gets returned'</span>);
0014 <span class="keyword">end</span>
0015 
0016 <span class="keyword">if</span> nargin~=3
0017   error(<span class="string">'I think you''ve forgotten to feed in all your arguments'</span>);
0018 <span class="keyword">end</span>
0019 
0020 subj = <a href="set_mat.html" class="code" title="function [subj] = set_mat(subj,objtype,objname,newmat,varargin)">set_mat</a>(subj,objtype,objname,[],<span class="string">'ignore_empty'</span>,true);</pre></div>
<hr><address>Generated on Wed 31-Aug-2005 15:27:57 by <strong><a href="http://www.artefact.tk/software/matlab/m2html/" target="_parent">m2html</a></strong> &copy; 2003</address>
</body>
</html>